﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace UCL.Data
{
    /// <summary>
    /// 数据库连接信息
    /// </summary>
    /// <remarks>2015-1-21 by sutroon</remarks>
    [Serializable]
    public class ConnectionInfo
    {
        /// <summary>
        /// 数据库类型
        /// </summary>
        public DatabaseProduct Dbtype { get; set; }

        /// <summary>
        /// 获取或设置当前连接的数据库名称
        /// </summary>
        public string Database { get; set; }

        /// <summary>
        /// 获取或设置当前连接的数据库服务器名称
        /// </summary>
        public string Host { get; set; }

        /// <summary>
        /// 获取或设置数据库连接端口
        /// </summary>
        public int Port { get; set; }

        /// <summary>
        /// 获取或设置数据库登录名
        /// </summary>
        public string User { get; set; }

        /// <summary>
        /// 获取或设置数据库登录密码
        /// </summary>
        public string Password { get; set; }

        /// <summary>
        /// 获取或设置数据库连接字符串
        /// </summary>
        public string Url { get; set; }

        /// <summary>
        /// 获取数据源提供程序名称
        /// </summary>
        public string Provider { get; set; }

        /// <summary>
        /// 获取或设置超时秒数
        /// </summary>
        public int Timeout { get; set; }
    }
}
